package OOA.com.JavaBasis.permissANDstructure;

public class PermissionDemo1Test {
    public static void main(String[] args) {
        //通过构造方法为成员变量赋值
        PermissionDemo1 permissionDemo1 = new PermissionDemo1("wjm",20);
        System.out.println("name:"+permissionDemo1.getName()+",age:"+permissionDemo1.getAge());

        //通过setXxx（参数）函数为成员变量赋值
        permissionDemo1.setAge(20);
        permissionDemo1.setName("cwt");
        System.out.println("name:"+permissionDemo1.getName()+",age:"+permissionDemo1.getAge());


    }
}
